<?php
// no direct access
defined('_JEXEC') or die('Restricted access');

$document =& JFactory::getDocument();
$document->addHeadLink('components/com_jbshop/media/css/default.css','stylesheet','rel','','');

require_once (JPATH_COMPONENT.DS.'utils'.DS.'const.php');
require_once (JPATH_COMPONENT.DS.'utils'.DS.'common_utils.php');

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Require specific controller if requested
if($controller = JRequest::getVar('controller')) {
	require_once (JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php');
}

// Create the controller
$classname	= 'JBShopController'.$controller;
$controller = new $classname( );

// Perform the Request task
$controller->execute( JRequest::getVar('task'));

// Redirect if set by the controller
$controller->redirect();

?>